package com.example.demo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @author caiwl
 * @date 2020/4/27 9:39
 */
@SpringBootApplication
@RestController
public class Service1Application {
    public static void main(String[] args) {
        SpringApplication.run(Service1Application.class, args);
    }

    @RequestMapping("/")
    public String home(HttpServletRequest request) {
        return request.getSession().getId();
    }
}
